package org.force4spring;

import org.springframework.dao.PermissionDeniedDataAccessException;

import com.sforce.soap.partner.fault.ExceptionCode;
import com.sforce.soap.partner.fault.LoginFault;

public class LoginException extends PermissionDeniedDataAccessException {
	private ExceptionCode exceptionCode;
	
	public LoginException(LoginFault fault) {
		super(fault.getExceptionMessage(), fault);
		exceptionCode = fault.getExceptionCode();
	}
	
	public ExceptionCode getExceptionCode() {
		return exceptionCode;
	}
}
